
const model =require('../../../dao/model/model')
const { baseService2 } = require('../../baseService2')

/* 
替换service
修改异常message
修改model
*/

/* 异常类 */
class resumeBoxServiceError extends Error {
    constructor(error,message='resumeBoxService error'){
        super()
        this.error = error
        this.message=message
    }
}


class resumeBoxService extends baseService2{

    static ins = new resumeBoxService()
    constructor(){
        super(model.resumeBoxModel,resumeBoxServiceError)
    }

    static getIns (){
        if(this.ins){
            return this.ins
        }else{
            return new resumeBoxService()
        }
    }


}







module.exports={
    resumeBoxService
}
